﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
//2 thu vien duoc them vao
using Subgurim.Controles;
using System.Configuration;

public partial class _Default : System.Web.UI.Page 
{
   
    public Truycapdulieu truycapdl = new Truycapdulieu();
    protected void Page_Load(object sender, EventArgs e)
    {
       
       
    }
    
    protected void DropDownList1_SelectedIndexChanged(object sender, EventArgs e)
    {
        DropDownList2.DataSource = truycapdl.TaoBang("Select ID, PhanLoai From PhanLoai Where ID_LV='" + DropDownList1.SelectedValue.ToString() + "'");
        DropDownList2.DataValueField = "ID";
        DropDownList2.DataTextField = "PhanLoai";
        DropDownList2.DataBind();
        
    }
}